package com.huawei.eidc.message;

import java.io.File;

import org.apache.axis.client.Service;
import org.dom4j.io.SAXReader;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception{
		Sample sa = new Sample();
		String path = "D:\\Developer\\Java\\WorkSpaceS\\Maven\\WorkSpace\\WebServices\\WebContent\\WEB-INF\\template\\";
        String address = "http://218.2.129.11:11070/ecagent/services/ECAgentService?wsdl";
        Service service = new org.apache.axis.client.Service();
        org.apache.axis.client.Call call = null;
        call = (org.apache.axis.client.Call) service.createCall();
        call.setOperationName(new javax.xml.namespace.QName(address, "userInfoSync"));
        call.setTargetEndpointAddress(new java.net.URL(address));
        String smg = Sample.getXMLStr(new SAXReader().read(new File(path+"\\b.xml")));
        System.out.println(smg);
        String ret = (String) call.invoke(new Object[] {smg});
       
        System.out.println("response:"+ret);


	}
	
	
}
